<?php 
include('../include/config.php');

session_start();

$login_check = login_check($_POST['username'], $_POST['password']);
if ($login_check) {
    $_SESSION['username'] = $_POST['username'];
    header('Location: user-account.php');
} else {
    header('Location: user-form.php?error=1');
}
?>
